/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.cshoo.tattoo.embed.infra.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * 分页请求对象
 *
 * @author 杨翼
 * @since 1.0
 */
@Data
public class PageQueryEntity<T> {

    @ApiModelProperty(value = "页数", example = "10")
    @NotNull(message = "pageSize is required")
    private Integer pageSize;

    @ApiModelProperty(value = "当前页数", example = "10")
    @NotNull(message = "pageNumber is required")
    private Integer pageNumber;

    @Valid
    private T query;
}
